from django.urls import path
from . import class_views
from django.views.generic import TemplateView


app_name = 'class'
urlpatterns = [
    path('view0', class_views.view0, name='view0'),
    path('view1', class_views.View1.as_view(desc='说明： 第one个视图函数'), name='view1'),
    path('about1', class_views.about1, name='about1'),
    path('about2', TemplateView.as_view(
        template_name='class/about.html',
        extra_context={'name':'zyy'}
    ), name='about2'),
]